import config from './default'

let envConfig = null

try {
  envConfig = process.env.NODE_ENV == 'development' ?
  require('./dev').default :
  require('./prod').default
} catch (o_o) {
  console.warn('used default config now')
}

if (envConfig) {
  Object.assign(config, envConfig)
}

export default config
